package org.theqcp.wow.sim.engine.revised.scripts;

import org.theqcp.wow.model.exceptions.AttackOriginException;
import org.theqcp.wow.model.mechanics.Slot;

public class AutoAttackObserver extends SimulationEventObserver {

    public AutoAttackObserver(Slot hand, double dps, double speed) throws AttackOriginException {
	if( !hand.equals(Slot.MAINHAND) && !hand.equals(Slot.OFFHAND) && !hand.equals(Slot.TWOHAND) &&
	    !hand.equals(Slot.RANGED_RELIC) ) {
	    throw new AttackOriginException("Can not orginate attack from " + hand);
	}
    }

}
